package indi.caibo.service_edu.mapper;

import indi.caibo.service_edu.entity.EduCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import indi.caibo.service_edu.entity.vo.course.CoursePublishVo;
import indi.caibo.service_edu.entity.vo.course.CourseFrontVo;

import java.util.List;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author Bo Cai
 * @since 2021-10-07
 */
public interface EduCourseMapper extends BaseMapper<EduCourse> {
    CoursePublishVo getCoursePublishVoById(String id);

    CourseFrontVo selectInfoWebById(String id);

    /**
     * 获取访问量前8的课程
     *
     * @return 课程集合
     */
    List<EduCourse> selectHot8Courses();
}
